package cn.legend.travel.ask.dao.persist.mapper;

import cn.legend.travel.ask.pojo.entity.Answer;
import cn.legend.travel.ask.pojo.vo.AnswerStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

@Repository
public interface AnswerMapper extends BaseMapper<Answer> {
    int addLikes(Long answerId);
    int cancelLikes(Long answerId);
    int addView(Long answerId);
    int report(Long answerId);
    AnswerStandardVO getBestAsk(Long questionId);

    AnswerStandardVO getBestAskAndUserId(Long questionId, Long userId);
}
